package com.train.DIP;

import com.train.DIP.message.Message;

public class Student {
    /**
     * 用接口定义参数，比直接使用qq类更好
     * */
    public void sendQQInfo(Message message){
        System.out.println(message.sendInfo());
    }
    public void getQQInfo(Message message){
        System.out.println(message.getInfo());
    }
    public void sendEmailInfo(Message message){
        System.out.println(message.sendInfo());
    }
    public void getEmailInfo(Message message){
        System.out.println(message.getInfo());
    }
    public void sendWeChatInfo(Message message){
        System.out.println(message.sendInfo());
    }
    public void getWeChatInfo(Message message){
        System.out.println(message.getInfo());
    }
}
